package com.ly.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ly.dao.BtypeMapper;
import com.ly.entity.Btype;
import com.ly.service.BtypeService;

@Service(value = "btypeService")
public class BtypeServiceImpl implements BtypeService {

    @Autowired
    private BtypeMapper<Btype>btypeMapper;
    
    @Override
    public Integer insertSelective(Btype btype) throws Exception {
           return this.btypeMapper.insertSelective(btype);
        }

    @Override
    public Integer insertBatch(List<Btype> btype) throws Exception {
           return this.btypeMapper.insertBatch(btype) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.btypeMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.btypeMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(Btype btype) {
           return this.btypeMapper.updateByPrimaryKeySelective(btype);
    }

    @Override
    public Btype findById(Object id) {
           return (Btype) this.btypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Btype> selectByCondition(Btype btype) {
           return (List<Btype>) this.btypeMapper.selectByCondition(btype);
    }

    @Override
    public Integer selectCountByCondition(Btype btype) {
           return  this.btypeMapper.selectCountByCondition(btype);
    }

}
